﻿using Prism.Commands;
using Prism.Mvvm;
using System;
using WPFStudyPrismDialog.Views;

namespace WPFStudyPrismDialog.ViewModels
{
    public class MainWindowViewModel : BindableBase
    {
        public DelegateCommand DialogCommand { get; set; }

        public MainWindowViewModel()
        {
            DialogCommand = new DelegateCommand(ShowDialog);
        }

        private void ShowDialog()
        {
            new ViewDialog().ShowDialog();
        }
    }
}
